<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>VUE入门示例2</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <fieldset>
        <legend>
            Vue.js最核心的功能：数据双向绑定
        </legend>
        <p>在输入框输入的内容会实时展示在页面的h1标签中</p>
        <div id="app">
            <input type="text" v-model="msg"/>
            <h1>{{msg}}</h1>
        </div>
    </fieldset>

</body>
</html>
<script type="text/javascript">
  var app =  new Vue({
        el:"#app",
        data:{
            msg:"一起学习VUE！"
        }
    });

</script>